﻿using Bll;
using Help;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Myproject.BSM.Ashx.PcChannelSlide
{
    /// <summary>
    /// slideDelete 的摘要说明
    /// </summary>
    public class slideDelete : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string id = context.Request.QueryString["id"];
            if (new SlideBLL().Delete(int.Parse(id)))
            {
                context.Response.Write(ReturnJsonHelp.OutHandlerJson(true, "删除幻灯频道成功！"));
            }
            else
            {
                context.Response.Write(ReturnJsonHelp.OutHandlerJson(false, "删除幻灯频道失败！"));
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}